﻿using SharpErp.Data.Service;
using log4net.Config;

namespace SharpErp.Server
{
    public class Startup
    {
        public static void Main(string[] args)
        {
            XmlConfigurator.Configure();
            var service = new SharpErpServiceImpl();
            var server = new SharpChannel.Rpc.SharpChannelServer<ISharpErpService>(service);
            service.GetCurrentSession += new SharpErpServiceImpl.GetCurrentSessionDelegate(delegate { return server.GetCurrentSession(); });
        }
    }
}
